]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Explicitly specify JS version
authorColin Walters <walters@verbum.org>
Fri, 10 Dec 2010 20:03:26 +0000 (15:03 -0500)
committerColin Walters <walters@verbum.org>
Thu, 16 Dec 2010 22:40:17 +0000 (17:40 -0500)
See bug 636652 for rationale.

https://bugzilla.gnome.org/show_bug.cgi?id=636983

src/gnome-shell-plugin.c

index 9d96303c0cfb5712413d3aeb73c55db0fd24914b..69e63a2720d81da7e3c2e34749506456b188223b 100644 (file)
@@ -364,7 +364,10 @@ gnome_shell_plugin_start (MetaPlugin *plugin)
     shell_js = JSDIR;
 
   search_path = g_strsplit(shell_js, ":", -1);
-  shell_plugin->gjs_context = gjs_context_new_with_search_path(search_path);
+  shell_plugin->gjs_context = g_object_new (GJS_TYPE_CONTEXT,
+                                            "search-path", search_path,
+                                            "js-version", "1.8",
+                                            NULL);
   g_strfreev(search_path);
 
   /* Disable the gnome-volume-control debug */